﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using P2PLib.Common.DataModel;

namespace P2PLib.Server
{
    public class ServerEventArgs
    {
    }

    public class ClientEventArgs
    {
        private ClientInfo client;

        public ClientInfo Client
        {
            set
            {
                this.client=value;
            }
            get
            {
                return this.client;
            }
        }

        public ClientEventArgs(ClientInfo cl)
        {
            this.client=cl;
        }
    }
    /// <summary>
    /// 当客户端连接到服务器时，发生该事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void ClientConnectedEventHandler(object sender, ClientEventArgs e);

    public delegate void ClientDisconnectedEventHandler(object sender, ClientEventArgs e);
}
